common: add a new mappable resource type: XENMEM_resource_grant_table
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 9 Aug 2018 09:59:40 +0000 (10:59 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 10 Aug 2018 12:27:24 +0000 (13:27 +0100)
commit83fa6552cea112a900ec7891f8c170d022fe7e20
tree5c11f1d97a7f1bdf9014ac164213b19ae12707d1
parent1237659523813696af4083279a7b871d407cbd48
common: add a new mappable resource type: XENMEM_resource_grant_table

This patch allows grant table frames to be mapped using the
XENMEM_acquire_resource memory op.

NOTE: This patch expands the on-stack mfn_list array in acquire_resource()
      but it is still small enough to remain on-stack.

NOTE: This patch also removes a bogus comment above the
      grant_to_status_frames() function.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
[Rebase over "Explicitly default to gnttab v1 during domain creation"]
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/grant_table.c
xen/common/memory.c
xen/include/public/memory.h
xen/include/xen/grant_table.h